﻿using D3StatsClient.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace D3StatsClient
{
    public static class Utility
    {
        public static string GetColorForItemQuality (ItemQuality quality)
        {
            switch(quality)
            {
                case ItemQuality.Inferior:
                    return "#808080";
                case ItemQuality.Invalid:
                    return "#808080";
                case ItemQuality.Legendary:
                    return "#bf642f";
                case ItemQuality.Magic1:
                    return "#6969ff";
                case ItemQuality.Magic2:
                    return "#6969ff";
                case ItemQuality.Magic3:
                    return "#6969ff";
                case ItemQuality.Normal:
                    return "#ffffff";
                case ItemQuality.Rare4:
                    return "#ffff00";
                case ItemQuality.Rare5:
                    return "#ffff00";
                case ItemQuality.Rare6:
                    return "#ffff00";
                case ItemQuality.Special:
                    return "#ffff00";
                case ItemQuality.Superior:
                    return "#ffff00";
                default:
                    return "#ffffff";
            }
        }
    }
}
